package DomainObject;

import java.io.Serializable;

import ca.etsmtl.log720.lab1.Reaction;
import ca.etsmtl.log720.lab1.ReactionPOA;
///Create by Martin Soulière
@SuppressWarnings("serial")
public class ReactionImpl extends ReactionPOA implements Serializable {

	protected int _id;
	protected String _description;
	protected int _niveau;
	public ReactionImpl(int id,String desc, int niveau) {
		_description = desc;
		_niveau = niveau;
		_id = id;
	}
	public ReactionImpl(Reaction current) {
		_id = current.id();
		_description = current.description();
		_niveau = current.niveau();
	}
	public int id() {
		return _id;
	}

	public String description() {
		return _description;
	}

	public int niveau() {
		return _niveau;
	}

	public String _toString() {
		return _description + " " + _niveau;
	}

}
